﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace Web.manager
{
    public partial class StatGroupEmplCount : PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            SetDivePage(ref GridView1, ref GV);
            if (!IsPostBack)
            {
                QueryData();
            }
        }

        public override void QueryData()
        {
            DataSet ds = PhoneBook.Manage.Stat.StatGroupEmplCount();
            GVDataBind(ref GridView1, ref GV, ds);

            //Chart1.Series["Series1"].Points.DataBind(ds.Tables[0].Rows, "groupname", "usercount", "");

        }

        //导出
        protected void btn_export_Click(object sender, EventArgs e)
        {
            string filename = string.Format("StatGroupEmplCount{0}", Commons.StringUtil.GetID_15());
            Commons.FileUtil.GridExportExcel(GridView1, filename);
        }
    }
}